import {createStore, applyMiddleware, combineReducers} from "redux";

import countReducer from './reducers/count';
import personReducer from "./reducers/person";

// 异步Action的插件
import {thunk} from "redux-thunk";

const allReducers = combineReducers({
	he: countReducer,
	rens: personReducer
})

// 暴露store
export default createStore(allReducers, applyMiddleware(thunk));